﻿using System.ComponentModel.DataAnnotations;

namespace Qask.Service.Core
{
    public class CreateQuestionViewModel
    {
        [Required(ErrorMessage = "Title is missing")]
        [MinLength(10, ErrorMessage = "Title must be atleast 10 characters ")]
        public string Title { get; set; }

        [Required(ErrorMessage = "Body is missing")]
        [MinLength(20, ErrorMessage = "Body must be atleast 20 characters ")]
        public string Body { get; set; }
    }
}